package com.jghz.autoconfigure.hibernate;

import java.util.Properties;

public class HibernateProps {
	private String show_sql;
	private String format_sql;
	private String hbm2ddl_auto;
	private String dialect;

	public String getShow_sql() {
		return show_sql;
	}

	public void setShow_sql(String show_sql) {
		this.show_sql = show_sql;
	}

	public String getFormat_sql() {
		return format_sql;
	}

	public void setFormat_sql(String format_sql) {
		this.format_sql = format_sql;
	}

	public String getHbm2ddl_auto() {
		return hbm2ddl_auto;
	}

	public void setHbm2ddl_auto(String hbm2ddl_auto) {
		this.hbm2ddl_auto = hbm2ddl_auto;
	}

	public String getDialect() {
		return dialect;
	}

	public void setDialect(String dialect) {
		this.dialect = dialect;
	}

	public Properties toProperties() {
		Properties properties = new Properties();
		properties.put("hibernate.dialect", dialect);
		properties.put("hibernate.show_sql", show_sql);
		properties.put("hibernate.format_sql", format_sql);
		properties.put("hibernate.hbm2ddl.auto", hbm2ddl_auto);
		return properties;
	}
}
